package cn.changein.framework.modular.exportSetting.service;

import cn.changein.framework.base.pojo.page.PageInfo;
import cn.changein.framework.kernel.model.response.ResponseData;
import cn.changein.framework.modular.exportSetting.entity.ExportSetting;
import cn.changein.framework.modular.exportSetting.model.params.ExportSettingParam;
import cn.changein.framework.modular.exportSetting.model.result.ExportSettingResult;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 导出设置 服务类
 * </p>
 *

 * @Date 2020-11-28
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
public interface ExportSettingService extends IService<ExportSetting> {

    /**
     * 新增
     *

     * @Date 2020-11-28
     */
    void add(ExportSettingParam param);

    /**
     * 删除
     *

     * @Date 2020-11-28
     */
    void delete(ExportSettingParam param);

    /**
     * 更新
     *

     * @Date 2020-11-28
     */
    void update(ExportSettingParam param);

    /**
     * 查询单条数据，Specification模式
     *

     * @Date 2020-11-28
     */
    ExportSettingResult findBySpec(ExportSettingParam param);

    /**
     * 查询列表，Specification模式
     *

     * @Date 2020-11-28
     */
    List<ExportSettingResult> findListBySpec(ExportSettingParam param);

    /**
     * 查询分页数据，Specification模式
     *

     * @Date 2020-11-28
     */
     PageInfo findPageBySpec(ExportSettingParam param);

    ResponseData getExportData(JSONObject jsonParam);

    ResponseData validateExportSetting(ExportSettingParam exportSettingParam);
}
